package com.flick.user.services;

import com.flick.common.CommonPage;
import com.flick.common.Result;
import com.flick.exception.CommonException;
import com.flick.fein.PaymentFein;
import com.flick.vo.payment.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    PaymentFein fein;

    public List<UserVo> list(){
        return fein.userlist().getData();
    }

    public CommonPage<UserVo> page(Integer page, Integer size){
        return fein.userpage(page,size).getData();
    }

    public Result<String> save(Integer sec){
        return  fein.usersave(sec);
    }

}
